Wdr\App\Controllers\ManageDiscount D

Total Complexity 634
Dependencies 8
Dependents 3
Total lines 2,491
Lines of code 1,837
Logical lines of code 1,208
Comment lines 454
Methods 78
Properties 13

Methods 78

Method Rating Maintainability Complexity Lines of code
getSetDiscountItemPriceHtml()
D
20
78 158
orderItemsSaved()
D
22
67 136
getPriceHtml()
D
31 42 100
getVariablePriceHtml()
C
35 28 79
getSetStrikeoutPrice()
C
32 26 102
applyVirtualCouponForCartRules()
B
37 20 74
getCartPriceHtml()
B
41 20 52
applyCartDiscount()
B
41 18 54
validateVirtualCouponForCartRules()
B
38 16 65
orderItemsSavedForBXGYFree()
A
46 15 36
applyCartProductDiscount()
A
44 14 41
onCreateWoocommerceOrderLineItem()
A
48 13 31
getDiscountPerItem()
A
50 12 31
buy_x_get_y_cheapest_additional_strike_out()
A
46 10 36
removeAppliedMessageOfThirdPartyCoupon()
A
54 11 20
calculateProductDiscountPrice()
A
48 10 34
getPriceHtmlSalePriceAdjustment()
A
49 10 29
isCallbackMatch()
A
50 10 28
orderItemsSavedForBXGXFree()
A
51 10 23
hideZeroCouponValue()
A
53 10 20
isCartContainsAnyThirdPartyCoupon()
A
56 9 17
removeThirdPartyCoupon()
A
56 8 17
calculateCartPageDiscounts()
S
52 7 23
applyFakeCouponsForCartRules()
S
54 7 21
getStrikeoutPrice()
S
54 6 21
isProductInSale()
S
54 6 19
removeDuplicateStrikeoutPrice()
S
57 6 16
applyTaxInFee()
S
58 6 15
awdrExportCsv()
S
52 5 20
showBulkTableInPositionManually()
S
55 5 18
checkCouponToApply()
S
48 4 33
getCartTotalPriceHtml()
S
58 5 16
displayTotalSavingsThroughDiscountInOrder()
S
57 5 16
displayTotalSavingsInOrderAfterOrderTotal()
S
57 5 16
removeWrongCallbacks()
S
59 5 16
getCalculateDiscountPriceFrom()
S
56 4 18
reCalculateCartTotal()
S
65 5 9
getPercentageFromCartKey()
S
60 4 13
manageVirtualCoupon()
S
50 3 27
getItemTotalDiscount()
S
62 4 12
getCartProductSubtotalPriceHtml()
S
61 4 11
didAppliedDiscountAlready()
S
62 4 11
getProductIdsFromCartKey()
S
62 4 11
showAppliedRulesMessages()
S
57 3 16
displayPromotionMessages()
S
66 4 8
removeOtherEvents()
S
64 4 10
doApplyDiscount()
S
60 3 13
replaceSaleTagText()
S
60 3 12
orderSubTotalDiscountDetails()
S
61 3 12
orderItemMetaDiscountDetails()
S
62 3 11
overwriteCouponLabel()
S
67 3 7
changeTemplateForSaleTag()
S
65 3 8
changeCouponLabelInFrontEnd()
S
63 3 10
updateProductsAsOnSale()
S
65 3 9
removeDuplicateValues()
S
66 3 8
doProcessStrikeOut()
S
66 3 9
loadAssets()
S
52 1 22
is_closure()
S
69 2 7
isProductOnSale()
S
70 2 6
suppressOtherDiscountPlugins()
S
59 1 15
removeThirdPartyCouponIfRequired()
S
72 2 5
showAdvancedTableInPositionManually()
S
67 2 7
getProductRegularPrice()
S
69 2 6
getYouSavedText()
S
63 2 10
showAdvancedTableInPosition()
S
72 2 6
getProductSalePrice()
S
69 2 6
showBulkTableInPosition()
S
72 2 6
getDiscountRules()
S
67 2 8
displaySubTotalPromotionMessagesInCheckoutContainer()
S
78 1 4
removeAppliedCoupon()
S
68 1 7
removeCouponAppliedMessage()
S
73 1 5
displaySubTotalPromotionMessagesInCheckout()
S
68 1 8
removeOnSaleFlashEvent()
S
72 1 6
setCartCouponValues()
S
69 1 6
displayPromotionMessagesInCheckout()
S
68 1 8
displayPromotionMessagesInCheckoutContainer()
S
78 1 4
calculateInitialAndDiscountedPrice()
S
77 1 3
__construct()
S
78 1 4